package utils;

import org.aspectj.lang.JoinPoint;

public class Tool {
	
	public static void dumpInfo(JoinPoint pjp) {
		Object[] args = pjp.getArgs();
		System.out.println("Executed method: " + pjp.getSignature().getName());
		System.out.println("On object of type: " + pjp.getTarget().getClass().getName());
		System.out.println("With arguments:");
		for (int x = 0; x < args.length; x++) {
			System.out.println(" > " + args[x]);
		}
		System.out.print("\n");
	}
	
}
